package org.jeecg.modules.wmhb.entity;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException;

/**
 * @Description: 合同产品清单
 * @Author: jeecg-boot
 * @Date:   2024-09-07
 * @Version: V1.0
 */
@Data
@TableName("wm_contract_product")
@ApiModel(value="wm_contract_product对象", description="合同产品清单")
public class WmContractProduct implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**父级节点*/
	@Excel(name = "父级节点", width = 15)
    @ApiModelProperty(value = "父级节点")
    private java.lang.String pid;
	/**是否有子节点*/
	@Excel(name = "是否有子节点", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否有子节点")
    private java.lang.String hasChild;
	/**名称*/
	@Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private java.lang.String name;
	/**编码*/
	@Excel(name = "编码", width = 15)
    @ApiModelProperty(value = "编码")
    private java.lang.String code;
	/**产品ID*/
	@Excel(name = "产品ID", width = 15, dictTable = "wm_item", dicText = "name", dicCode = "id")
	@Dict(dictTable = "wm_item", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "产品ID")
    private java.lang.String wmItemId;
	/**规格*/
	@Excel(name = "规格", width = 15)
    @ApiModelProperty(value = "规格")
    private java.lang.String specification;
	/**单位*/
	@Excel(name = "单位", width = 15, dicCode = "unit_of_measure")
	@Dict(dicCode = "unit_of_measure")
    @ApiModelProperty(value = "单位")
    private java.lang.String unitOfMeasure;
	/**批次号*/
	@Excel(name = "批次号", width = 15)
    @ApiModelProperty(value = "批次号")
    private java.lang.String batchNo;
	/**数量*/
	@Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private java.lang.Double quantity;
	/**产品物料标识*/
	@Excel(name = "产品物料标识", width = 15, dicCode = "item_or_product")
	@Dict(dicCode = "item_or_product")
    @ApiModelProperty(value = "产品物料标识")
    /**产品任务性质*/
    private java.lang.String itemOrProduct;
    @Excel(name = "产品性质", width = 15, dicCode = "task_type")
    @Dict(dicCode = "task_type")
    private String taskType;       // 产品性质（自制，外协，外购，安装材料，安装调试，技术服务）
	/**阶数*/
	@Excel(name = "阶数", width = 15)
    @ApiModelProperty(value = "阶数")
    private java.lang.Integer level;
	/**所有层级父节点*/
	@Excel(name = "所有层级父节点", width = 15)
    @ApiModelProperty(value = "所有层级父节点")
    private java.lang.String ancestors;
	/**是否开启*/
	@Excel(name = "是否开启", width = 15, dicCode = "enable_flag")
	@Dict(dicCode = "enable_flag")
    @ApiModelProperty(value = "是否开启")
    private java.lang.String enableFlag;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private java.lang.String tenantId;
    /**合同ID*/
    @Excel(name = "合同ID", width = 15)
    @ApiModelProperty(value = "合同ID")
    @Dict(dictTable = "wm_contract", dicText = "name", dicCode = "id")
    private java.lang.String wmContractId;
}
